// 课程管理
import { request } from '../util/request.js'

export function studentDownload(data) { // 下载学生的模板
    return request( '/api/import/student/download', data, 'get')
}

export function teacherDownload(data) { // 下载老师的模板
    return request( '/api/import/teacher/download', data, 'get')
}

export function studentUpload(data) { // 上传学生的文件
    return request( '/api/import/student/upload', data, 'post')
}

export function teacherUpload(data) { // 上传老师的文件
    return request( '/api/import/teacher/upload', data, 'post')
}

export function studentPreview(data) { // 预览学生模板
    return request( '/api/import/student/preview', data, 'get')
}

export function teacherPreview(data) { // 预览老师模板
    return request( '/api/import/teacher/preview', data, 'get')
}

export function teacherImport(data) { // 批量导入教师模板
    return request( '/api/import/teacher/import', data, 'post')
}

export function studentImport(data) { // 批量导入学生模板
    return request( '/api/import/student/import', data, 'post')
}

// 正星部分
export function studentInfo(data) { //实时学生列表数据
    return request( '/api/student/msg', data, 'get')
}

export function searchStu(data) { //实时学生列表数据
    return request( '/api/student/searchStu', data, 'post')
}

export function resetStuPwd(data) { // 重置学生密码为账号
    return request( '/api/student/resetStuPwd', data, 'get')
}

export function deleteStuRecord(data) { // 删除单个学生列表记录
    return request( '/api/student/deleteStuRecord', data, 'get')
}

export function massDeleteStuRecord(data) { // 批量删除学生列表记录
    return request( '/api/student/massDeleteStuRecord', data, 'post')
}

export function getGrade(data) { //获取年级
    return request( '/api/student/getGrade', data, 'get')
}
export function getMajor(data) { //获取专业
    return request( '/api/student/getMajor', data, 'get')
}
export function getClass(data) { //获取班级
    return request( '/api/student/getClass', data, 'get')
}
export function getClassNew(data) { //获取班级
    return request( '/api/student/getClassNew', data, 'get')
}
//获取学生详细信息
export function getStudentInfo(data){
    return request('/api/student/getStudentInfo',data,'get')
}

//New
//第57行代码为获取年纪